<?php

include_once '../recursos.php';

class CargarDatosPostgres extends PHPUnit_Framework_TestCase {

    public function tearDown() {
        
    }

    
    public function testCargarJugadoresPostgres() {
        cargarJugadoresTest();
        $sql = "select * from is_db.player";
        $result = pg_query($sql);
        $lineas = pg_num_rows($result);
        $this->assertEquals(472, $lineas);
    }
    
    public function testCargarStatusPostgres(){
        cargarStatus();
        $sql = "select * from is_db.status";
        $result = pg_query($sql);
        $lineas = pg_num_rows($result);
        $this->assertEquals(5, $lineas);
        
    }
    
    public function testCargarClubsPostgres(){
        cargarEquipos();
        $sql = "select * from is_db.club";
        $result = pg_query($sql);
        $lineas = pg_num_rows($result);
        $this->assertEquals(20, $lineas);
        
    }
    }
/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
?>
